<?php

require_once '../include/init.php';
require_once '../core/admin.php';
require_once '../core/user.php';
require_once '../core/cate.php';
require_once '../core/pro.php';
require_once '../core/thumb.php';
$act=$_GET['act'];

if($act=='addAdmin'){

    addAdmin();
}else if($act=='delAdmin'){

    $id=$_GET['id'];
    delAdmin($id);

}else if($act=='editAdmin'){

    $id=$_GET['id'];
     editAdmin($id);

}else if($act=='addUser'){
       addUser();
}else if($act=='editUser'){

    $id=$_GET['id'];
     editUser($id);

}else if($act=='delUser'){

    $id=$_GET['id'];
     delUser($id);

}else if($act=='delCate'){

    $id=$_GET['id'];
     echo delCate($id);

}else if($act=='addCate'){
   addCate();

}else if($act=='editCate'){

    $id=$_GET['id'];
     editCate($id);

}else if($act=='addPro'){
   addPro();
}else if($act=='delPro'){

    $id=$_GET['id'];
     delPro($id);

}else if($act=='editPro'){

    $id=$_GET['id'];
    editPro($id);
}else if($act=='waterPic'){
    $id=$_GET['id'];
   echo doWaterImage($id);
}else if($act=='waterText'){
    $id=$_GET['id'];
  echo doWaterText($id);
}